<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Copyright: Darren Hester 2006, http://www.designsbydarren.com
License: Released Under the "Creative Commons License", 
http://creativecommons.org/licenses/by-nc/2.5/
-->
<head>
  <!-- Meta Data -->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="description" content="Short description of your site here." />
  <meta name="keywords" content="keywords, go, here, seperated, by, commas" />
  <!-- Site Title -->
  <title>NewsPortal | Liquid 3-Column CSS Template</title>
  <!-- Link to Style External Sheet -->
  <link href="css/style.css" type="text/css" rel="stylesheet" />

</head>

<body>

  <div id="page_wrapper">

    <div id="header_wrapper">

      <div id="header">

        <h1><font color="#FFDF8C">ACM/ICPC</font> Online Judge System</h1>
        <h2>Harbin Institute of Technology at Weihai</h2>

      </div>

      <div id="navcontainer">

        <ul id="navlist">
          <li><a href="#">Home</a></li>
          <li id="active"><a href="#" id="current">Online Judge</a></li>
          <li><a href="#">Blog</a></li>
          <li><a href="#">Forum</a></li>
          <li><a href="#">Wiki</a></li>
          <li><a href="#">About</a></li>
        </ul>
      </div>
      
    </div>
    
    <div id="path">
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Online Judge</a></li>
        <li><a href="#">Problems</a></li>
        <li><a href="#">#3713</a></li>
      </ul>
    </div>

    <div id="left_side">
      
      <dl id="menulist">
        <dt><a href="#">Problems</a></dt>
        <dd><a href="#" class="active">Problem Archive</a></dd>
        <dd><a href="#">Problem Sets</a></dd>
        <dd><a href="#">My Problems</a></dd>
        <dt><a href="#">Contests</a></dt>
        <dd><a href="#">Ongoing Contests</a></dd>
        <dd><a href="#">History Contests</a></dd>
        <dd><a href="#">My Contests</a></dd>
        <dt><a href="#">Teams</a></dt>
        <dt><a href="#">Judge Status</a></dt>
        <dt><a href="#">Ranklist</a></dt>
        <dt><a href="#">Profile</a></dt>
        <dt><a href="#">Help</a></dt>
      </dl>

      <h3>Left Side</h3>

      <p>
        Lorem ipsum summo <a href="#">nominavi</a> pri et. Stet 
        <a href="#">eruditi</a> perfecto at sed, ad enim constituto 
        deseruisse quo, mea no quem eros munere. Ad splendide 
        quaerendum per, ea minimum officiis oportere vel, an has 
        perpetua percipitur. <a href="#">Consequat</a> contentiones 
        his te, id noster menandri his. Per partem perfecto eu, est 
        soluta accusata ex.
      </p>

      <h3>Left Side</h3>

      <div class='featurebox_side'>
        Lorem ipsum summo nominavi pri et. Stet eruditi perfecto at 
        sed, ad enim <a href="#">constituto</a> deseruisse quo, mea 
        no quem eros munere. 
      </div>

      <p>
        Lorem ipsum summo nominavi pri et. Stet eruditi perfecto at sed, 
        ad enim constituto deseruisse quo, mea no quem eros munere. Ad 
        splendide quaerendum per, <a href="#">ea minimum officiis</a> 
        oportere vel, an has perpetua percipitur. Consequat contentiones 
        his te, id <a href="#">noster menandri</a> his. Per partem perfecto 
        eu, est soluta accusata ex.
      </p>

      <div class='featurebox_side'>
        Lorem <a href="#">ipsum summo</a> nominavi pri et. Stet eruditi 
        perfecto at sed, ad enim constituto deseruisse quo, mea no quem 
        eros munere. 
      </div>

      </div>

    <div id="right_side">

      <div class="sidebox blue">
        <h3>Judge Limits</h3>
        <p>
          <strong>Time Limit: </strong>1000 ms
          <strong>Memory Limit: </strong>32767 KB
        </p>
      </div>
      
      <div class="sidebox green">
        <h3>Submissions</h3>
        <p>
          <strong>Total: </strong>1235 <br />
          <strong>AC: </strong>146 (11.8%) <br />
          <strong>PE: </strong>146 (11.8%) <br />
          <strong>WA: </strong>146 (11.8%) <br />
          <strong>CE: </strong>146 (11.8%) <br />
          <strong>TLE: </strong>146 (11.8%) <br />
          <strong>MLE: </strong>146 (11.8%) <br />
        </p>
      </div>
      
      <div class="sidebox orange">
        <h3>Top Authors</h3>

        <p>
          Lorem ipsum summo nominavi pri et. Stet eruditi perfecto at sed, ad 
          enim constituto <a href="#">deseruisse</a> quo, mea no quem eros 
          munere.
        </p>
      </div>
      
      <div class="sidebox grey">
        <h3>Problem Info</h3>

        <p>
          Lorem ipsum summo nominavi pri et. Stet eruditi perfecto at sed, ad 
          enim constituto <a href="#">deseruisse</a> quo, mea no quem eros 
          munere.
        </p>
      </div>
    </div>
    
    <div id="content">
      <h1>Elevator</h1>
      <div id="description">
        <p>The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to move down one floor. The elevator will stay for 5 seconds at each stop.</p>

        <p>For a given request list, you are to compute the total time spent to fulfill the requests on the list. The elevator is on the 0th floor at the beginning and does not have to return to the ground floor when the requests are fulfilled.</p>
      </div>
      <div id="input_format" class="format">
        <h3>Input Format</h3>
        <p>There are multiple test cases. Each case contains a positive integer N, followed by N positive numbers. All the numbers in the input are less than 100. A test case with N = 0 denotes the end of input. This test case is not to be processed.</p>
      </div>
      <div id="output_format" class="format">
        <h3>Output Format</h3>
        <p>Print the total time on a single line for each test case. </p>
      </div>
      <div id="input_sample" class="format">
        <h3>Input Sample</h3>
        <p class="code">
          1 2<br />
          3 2 3 1<br />
          0<br />
        </p>
      </div>
      <div id="output_sample" class="format">
        <h3>Output Sample</h3>
        <p class="code">
          17<br />
          41<br />
        </p>
      </div>
      <div id="buttons">
        <input id="submit" type="button" class="button" value="Submit" />
      </div>
    </div>
    
    
    <div id="comment">
      <h3>35 Comments</h3>
      <ol class="commentlist">
        <li>
          <div class="info">
            <div class="pic">
              <img src="img/name.png" alt="" height="24" width="24" />
            </div>
            <div class="author">
              <div class="authorname">author</div>
              <div class="date">2011/08/07</div>
            </div>
            <div class="count">
              <span>#1</span>
            </div>
            <div class=""></div>
          </div>
          <div class="content">
            <div id="commentbody-10">
              <p>Good, thanks!</p>
            </div>
            <ol>
              <li>
                <div class="info">
                  <div class="pic">
                    <img src="img/name.png" alt="" height="24" width="24" />
                  </div>
                  <div class="author">
                    <div class="authorname">author</div>
                    <div class="date">2011/08/07</div>
                  </div>
                  <div class="count">
                    <span>#1</span>
                  </div>
                  <div class=""></div>
                </div>
                <div class="content">
                  <div id="commentbody-10">
                    <p>Good, thanks!</p>
                  </div>
                  <ol>
                    <li>
                      <div class="info">
                        <div class="pic">
                          <img src="img/name.png" alt="" height="24" width="24" />
                        </div>
                        <div class="author">
                          <div class="authorname">author</div>
                          <div class="date">2011/08/07</div>
                        </div>
                        <div class="count">
                          <span>#1</span>
                        </div>
                        <div class=""></div>
                      </div>
                      <div class="content">
                        <div id="commentbody-10">
                          <p>Good, thanks!</p>
                        </div>
                        <ol>
                          <li>
                            <div class="info">
                              <div class="pic">
                                <img src="img/name.png" alt="" height="24" width="24" />
                              </div>
                              <div class="author">
                                <div class="authorname">author</div>
                                <div class="date">2011/08/07</div>
                              </div>
                              <div class="count">
                                <span>#1</span>
                              </div>
                              <div class=""></div>
                            </div>
                            <div class="content">
                              <div id="commentbody-10">
                                <p>Good, thanks!</p>
                              </div>
                            </div>
                          </li>
                        </ol>
                      </div>
                    </li>
                  </ol>
                </div>
              </li>
            </ol>
          </div>
        </li>
        <li>
          <div class="info">
            <div class="pic">
              <img src="img/name.png" alt="" height="24" width="24" />
            </div>
            <div class="author">
              <div class="authorname">author</div>
              <div class="date">2011/08/07</div>
            </div>
            <div class="count">
              <span>#1</span>
            </div>
            <div class=""></div>
          </div>
          <div class="content">
            <div id="commentbody-10">
              <p>Good, thanks!</p>
              <p>Test comment.</p>
            </div>
          </div>
        </li>
        <li>
          <div class="info">
            <div class="pic">
              <img src="img/name.png" alt="" height="24" width="24" />
            </div>
            <div class="author">
              <div class="authorname">author</div>
              <div class="date">2011/08/07</div>
            </div>
            <div class="count">
              <span>#1</span>
            </div>
            <div class=""></div>
          </div>
          <div class="content">
            <div id="commentbody-10">
              <p>Good, thanks!</p>
            </div>
          </div>
        </li>
      </ol>
      
      <div class="respond">
        <div class="editor">
          <textarea></textarea>
        </div>
        <div class="respondbuttons">
          <input type="button" class="button" value="Submit Comment" />
        </div>
      </div>
    </div>

    <div id="footer">
      <a href="#">Link One</a> | 
      <a href="#">Link Two</a> | 
      <a href="#">Link Three</a> | 
      <a href="#">Link Four</a> | 
      <a href="#">Link Five</a>
      <br />
      Template provided by: 
      <a href="http://www.designsbydarren.com" target="_blank">DesignsByDarren.com</a>
    </div>
    
    <div id="printfooter">
      <em>Generated by HWOJ 1.0</em>
    </div>
    
  </div>

</body>

</html>
